<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
   <base href="<%=basePath%>">
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  <link rel="stylesheet" href="css/demos.css" type="text/css"></link>
  <link rel="stylesheet" href="css/jquery.ui.all.css" type="text/css"></link>
  <link rel="stylesheet" href="css/jquery.ui.theme.css" type="text/css"></link>
  <link rel="stylesheet" href="css/jquery.ui.base.css" type="text/css"></link>
  <script type="text/javascript" src="javascript/jquery-1.4a2.min.js"></script>
  </head>
  
  <body>
  
  	<script language="JavaScript" type="text/JavaScript">
    
   
     function callAjax2(){
     	$.ajax({ url: "<%=basePath%>comment.do?m=submitComment", name:$("#name").val(), dataType:"html", success: function(data){
        $(".review > .cen_title").after(data);
      }});
     	
     	
     }
    
   </script>

    <form action="<%=basePath%>user.do?m=register" method="post">
    	评论:<input type="text" name="name" id="name"/>
    	
    	<input type="button"  value="提交" onclick="callAjax2()"/>
    	
    <DIV class=review>
		<DIV class=cen_title>
		   <UL>
		      <LI class=cen_title_hover><A href="javascript:void(0)">所有点评</A> </LI>
		   </UL>
		</DIV>
		<DIV class=review_con>
		<DIV class=review_con_left><IMG src="点评-饭易得杭州外_files/s_nopic.jpg" width=54 
		height=54> </DIV>
		<DIV class=review_con_right>
		<H4><SPAN>sjft</SPAN></H4>
		<P>真心建议你们扩展一下业务呀，我翻了好几家餐厅，居然离我们家都只有一、两条街的距离就在范围外了，郁闷。以前我都在点我吧订餐的，主要是看到你们有好几家新餐厅才想过来看看。其实你们可以多画一点范围，增加外送费用，这样让我们这些住得比较偏远的没东西可吃，就太郁闷了</P>
		<P class=f12>2013-5-17 15:54:42发布</P></DIV></DIV>
	</DIV>
   </form>
    
    <br>
     
  </body>

</html>
